#!/usr/bin/env python
'''
__author__=Yawei Yang
__date__ = July 3rd 2012
__doc__ =  Program 2-5 for chapter 2
'''

# slycot To compile for 64 bit architecture, use LDFLAGS="-arch x86_64" FFLAGS="-arch x86_64"

from control.matlab import *

A = [[0, 1.], [-25., -4.]]
B = [[1.,1.],[0.,1.]]
C = [[1.,0.],[0.,1.]]
D = [[0., 0.], [0.,0.]]

sys = ss2tf(A,B,C,D)
print sys
#Input 1 to output 1:
#    s + 4
#--------------
#s^2 + 4 s + 25
#
#Input 1 to output 2:
#-1.11e-16 s - 25
#----------------
# s^2 + 4 s + 25
#
#Input 2 to output 1:
#    s + 5
#--------------
#s^2 + 4 s + 25
#
#Input 2 to output 2:
#    s - 25
#--------------
#s^2 + 4 s + 25
